package com.treasure.mall.zbqmallapi.controller;

import com.treasure.mall.biz.service.core.withdraw.BankService;
import com.treasure.mall.zbq.common.base.ApiResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.zbqmallapi.controller
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/17 09:26
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.zbqmallapi.controller Inc. All rights reserved.
 */
@Api(tags = "银行模块")
@RestController
@RequestMapping("/bank")
public class BankController {


    @Resource
    private BankService bankService;

    @ApiOperation("银行列表")
    @GetMapping("/bankTypes")
    public ApiResult list() {
        return ApiResult.ok(bankService.getList());
    }
}
